﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace ESSManageService.Model.DBModels.Info
{
    /// <summary>
    /// 人员信息
    /// </summary>
    [SugarTable("User_Info", tableDescription: "人员信息表")]
    public class UserInfo : DbBase
    {
        /// <summary>
        /// 主键id
        /// <summary>
        [SugarColumn(IsPrimaryKey = true, ColumnName = "id", IsIdentity = true)]
        public long Id { get; set; }
        /// <summary>
        /// 登录账号
        /// </summary>
        [SugarColumn(Length = 200, IsNullable = true, ColumnDescription = "登录账号")]
        public string LoginName { get; set; }
        /// <summary>
        /// 登录密码
        /// </summary>
        [SugarColumn(Length = 200, IsNullable = true)]
        public string LoginPWD { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>
        [SugarColumn(Length = 200, IsNullable = true)]
        public string RealName { get; set; }

        // 性别
        [SugarColumn(IsNullable = true)]
        public int Sex { get; set; } = 0;

        // 年龄
        [SugarColumn(IsNullable = true)]
        public int Age { get; set; }
        // 地址
        [SugarColumn(Length = 200, IsNullable = true)]
        public string Address { get; set; }

        /// <summary>
        /// 用户角色
        /// <summary>
        [SugarColumn(Length = 1, IsNullable = true)]
        public long RoleID { get; set; }
        /// <summary>
		/// 部门
		/// <summary>
        [SugarColumn(Length = 200, IsNullable = true)]
        public string Department { get; set; }
        //是否删除
        [SugarColumn(IsNullable = true)]
        public bool IsDeleted { get; set; }
    }
}
